<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加预约</title>
<style type="text/css">
<!--
body {
	background-image: url(/Public/images/frame/allbg.gif);
}
-->
</style>
<link href="/dadaocms/Public/css/base.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
<!--
window.UEDITOR_HOME_URL = location.pathname.substr(0, location.pathname.lastIndexOf('/Public/ueditor/')) + '/Public/ueditor/';
//-->
</script>
<script type="text/javascript" src="/dadaocms/Public/ueditor/editor_config.js"></script>
<script type="text/javascript" src="/dadaocms/Public/ueditor/_src/plugins/autoheight.js"></script>
<script type="text/javascript" src="/dadaocms/Public/ueditor/editor.js"></script>
<link rel="stylesheet" href="/dadaocms/Public/ueditor/themes/default/ueditor.css" />
<script language="javascript" type="text/javascript" src="/dadaocms/Public/js/My97DatePicker/WdatePicker.js"></script>
<script language="javascript" type="text/javascript" src="/dadaocms/Public/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript">
$(function(){
	var myDate = new Date();
	var time = myDate.getFullYear() +"-"+(myDate.getMonth()+1) +"-"+ myDate.getDate();
	<if condition="empty($edit)">
	$("#pubdate").val(time);
	$("#typeid").change(function(){
		window.location.href='/index.php/Admin/Archive/add/typeid/'+$(this).val()+'.html';
	});
	</if>
	  $("#form1").submit(function(){		  
			if($("#title").val()==''){
				alert("文章标题必须填写");
				$("#title").focus();
				return false;
			}
			if($("#typeid").val()==''){
				alert("文章ID必须填写");
				$("#typeid").focus();
				return false;
			}
			if($("#pubdate").val()==''){
				alert("添加时间必须填写");	
				$("#pubdate").focus();
				return false;
			}		
	  });
	  
	
});
</script>
</head>
<body topmargin="8">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="65%" height="30">&nbsp; <IMG height=14 src="/dadaocms/Public/images/frame/book1.gif" width=20>&nbsp;<u>文章列表</u>-&gt;<if condition="$edit">文章修改<else />文章增加</if> </td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1" >
  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
</table>
<form name="form1" id="form1" action="" enctype="multipart/form-data" method="post">
<if condition="$edit">
      <input name="id" type="hidden" id="id" value="{$arr.id}" />
      <input name="aid" type="hidden" id="aid" value="{$arr.id}" />
  </if>
  <table width="98%"  border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;">
    <tr>
      <td width="100%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="90">&nbsp;文章标题：</td>
            <td><input name="title" type="text" id="title" value="{$arr.title}" /></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="100%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="90">&nbsp;缩略图：</td>
            <td><label for="picname"></label>
              <input type="file" name="picname" id="picname" />
              <if condition="$arr['picname']"><img src="{$arr.picname}" alt="" style="width: 150px;height: 100px;vertical-align: middle;margin-top: -2px;margin-bottom: 1px;" /></if></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="100%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="90">&nbsp;文章来源：</td>
            <td><input name="laiyuan" type="text" id="laiyuan" value="{$arr.laiyuan}" /></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="100%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="90">&nbsp;文章栏目：</td>
            <td><select name="typeid" id="typeid">
                <volist name="list" id="vo">               
                    <if condition="$vo['id'] eq I('get.typeid')">
                    <option value="{$vo.id}" selected="selected">| {$vo.Count|str_repeat='----',###}<neq name="vo.Count" value="1">| -- </neq>{$vo.typename}</option>
                    <else />
                    <option value="{$vo.id}">| {$vo.Count|str_repeat='----',###}<neq name="vo.Count" value="1">| -- </neq>{$vo.typename}</option>
                    </if>
                </volist>
              </select></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="100%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="90">&nbsp;关键字：</td>
            <td><input name="keywords" type="text" id="keywords" value="{$arr.keywords}" /></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="100%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="90">&nbsp;内容摘要：</td>
            <td><input name="info" type="text" id="info" value="{$arr.info}" /></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="100%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="90">&nbsp;添加时间：</td>
            <td><input name="pubdate" type="text" id="pubdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="{$arr.pubdate}"/></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="100%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="90">&nbsp;点击次数：</td>
            <td><input name="click" type="text" id="click" value="180" value="{$arr.click}" /></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="100%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="90">&nbsp;医院地址：</td>
            <td><script name="dizhi" type="text/plain" id="dizhi" style="width:100%">{$arr.dizhi}</script></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="100%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="90">&nbsp;医院介绍：</td>
            <td><script name="jieshao" type="text/plain" id="jieshao" style="width:100%">{$arr.jieshao}</script></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="100%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="90">&nbsp;医院环境：</td>
            <td><script name="huanjing" type="text/plain" id="huanjing" style="width:100%">{$arr.huanjing}</script></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="100%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="90">&nbsp;文章内容：</td>
            <td><script name="body" type="text/plain" id="body" style="width:100%">{$arr.body}</script></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td></td>
    </tr>
  </table>
  <!-- //搜索 -->
  
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;">
    <tr>
      <td height="35"><table width="100%" border="0" cellspacing="1" cellpadding="1">
          <tr>
            <td width="10%">&nbsp;</td>
            <td width="90%"><table width="214" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="115"><input name="imageField" type="image" src="/dadaocms/Public/images/frame/button_ok.gif" width="60" height="22" class="np" border="0" style="cursor:pointer"></td>
                  <td width="99"><img src="/dadaocms/Public/images/frame/button_reset.gif" width="60" height="22" border="0" onClick="window.opener.location.reload();window.close();" style="cursor:pointer"></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
</body>
<script type="text/javascript">
	var body1 = new baidu.editor.ui.Editor({
         minFrameHeight:"360"  // 最小高度,默认32
    });
	body1.render( 'dizhi' );
	
	var body2 = new baidu.editor.ui.Editor({
         minFrameHeight:"360"  // 最小高度,默认32
    });
	body2.render( 'jieshao' );
	
	var body3 = new baidu.editor.ui.Editor({
         minFrameHeight:"360"  // 最小高度,默认32
    });
	body3.render( 'huanjing' );
	
	var body4 = new baidu.editor.ui.Editor({
         minFrameHeight:"360"  // 最小高度,默认32
    });
	body4.render( 'body' );
</script>
</html>